package com.ruoyi.project.crm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.crm.mapper.CrmSuncodeMapper;
import com.ruoyi.project.crm.domain.CrmSuncode;
import com.ruoyi.project.crm.service.ICrmSuncodeService;

/**
 * 二维码存放地址Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-29
 */
@Service
public class CrmSuncodeServiceImpl implements ICrmSuncodeService 
{
    @Autowired
    private CrmSuncodeMapper crmSuncodeMapper;

    /**
     * 查询二维码存放地址
     * 
     * @param sid 二维码存放地址ID
     * @return 二维码存放地址
     */
    @Override
    public CrmSuncode selectCrmSuncodeById(Long sid)
    {
        return crmSuncodeMapper.selectCrmSuncodeById(sid);
    }

    /**
     * 查询二维码存放地址列表
     * 
     * @param crmSuncode 二维码存放地址
     * @return 二维码存放地址
     */
    @Override
    public List<CrmSuncode> selectCrmSuncodeList(CrmSuncode crmSuncode)
    {
        return crmSuncodeMapper.selectCrmSuncodeList(crmSuncode);
    }

    /**
     * 新增二维码存放地址
     * 
     * @param crmSuncode 二维码存放地址
     * @return 结果
     */
    @Override
    public int insertCrmSuncode(CrmSuncode crmSuncode)
    {
        return crmSuncodeMapper.insertCrmSuncode(crmSuncode);
    }

    /**
     * 修改二维码存放地址
     * 
     * @param crmSuncode 二维码存放地址
     * @return 结果
     */
    @Override
    public int updateCrmSuncode(CrmSuncode crmSuncode)
    {
        return crmSuncodeMapper.updateCrmSuncode(crmSuncode);
    }

    /**
     * 批量删除二维码存放地址
     * 
     * @param sids 需要删除的二维码存放地址ID
     * @return 结果
     */
    @Override
    public int deleteCrmSuncodeByIds(Long[] sids)
    {
        return crmSuncodeMapper.deleteCrmSuncodeByIds(sids);
    }

    /**
     * 删除二维码存放地址信息
     * 
     * @param sid 二维码存放地址ID
     * @return 结果
     */
    @Override
    public int deleteCrmSuncodeById(Long sid)
    {
        return crmSuncodeMapper.deleteCrmSuncodeById(sid);
    }
}
